#include "header.h"
#include <windows.h>
#define INPUT fptIn
#define TIMES 1000


int timeCounter(){
    LARGE_INTEGER StartTime, EndTime ;
    ULONGLONG frequency;
    double result;
    QueryPerformanceFrequency((PLARGE_INTEGER)&frequency);
    QueryPerformanceCounter(&StartTime);//Set start

    //Do function


    QueryPerformanceCounter(&EndTime);//Set end
    result = (double)((EndTime.QuadPart - StartTime.QuadPart))/(double)frequency;// s = 1000 * ms
    printf("%.10f",result);
    return 0;
}
int test(){
    int num = 1;
    while( num != 0){
        scanf(" %d",&num);
    }
    return 0;
}
int xnor(bool p,bool q){
    return ( (p&&q) || ( !(p||q) ) );
}
int xor(bool p,bool q){
    return ( ( !(p&&q) ) && (p||q) );
}
int dec2hex(int dec){
    int hex = 0, i = 0 ;
    while(dec > 0){
        hex = hex + (dec % 10)*pow(16,i);
        dec = dec / 10 ;
        i = i + 1;
    }
    return hex;
}


int printArr(int boxesNum, int *boxes){
    int i;
    printf("Arr:\n");
    for(i = 0;i<boxesNum;i=i+1){
        printf("    Index : %d is %d\n",i,boxes[i]);
    }
    return 0;
}
